package xing.design.pattern.structure.Decorator;

/**
 * @author xing
 * @date 2023/2/8 0:29:23
 */
public class Decorator2 extends Basic {
    private Basic basic;

    public Decorator2(Basic basic) {
        this.basic = basic;
    }

    @Override
    public void show() {
        System.out.println("in decorator22.");
        basic.show();
    }
}
